#pragma once
#include <iostream>
#include <string>
#include <vector>
class Util
{
public:
    static void cutString(std::string str, std::string sep, std::vector<std::string> *v)
    {
        int start = 0;
        while (start < str.size())
        {
            int pos = str.find(sep, start);
            if (pos == std::string::npos)
            {
                break;
            }
            std::string s = str.substr(start, pos - start);
            v->push_back(s);
            start += s.size();
            start += sep.size();
        }
        if(start<str.size())
        {
            v->push_back(str.substr(start));
        }
    }
};